package mediator.improve;

/**
 * 抽象同事类
 */
public abstract class User {
    protected String name;
    protected Mediator mediator;

    public User(String name, Mediator mediator) {
        this.name = name;
        this.mediator = mediator;
    }

    public abstract void send(String message);

    public abstract void receive(String message);
}
